package com.unit.test.case2.config;

import javax.annotation.PostConstruct;
import javax.inject.Inject;

import org.apache.commons.dbutils.QueryRunner;

import com.alibaba.druid.pool.DruidDataSource;
import com.unit.manager.AssertConvertManager;
import com.unit.manager.DbUtilsManager;
import com.unit.manager.TestDataManager;

public class BaseUnitTestCase {

	@Inject
	protected DruidDataSource dataSource;

    @Inject
	protected DbUtilsManager dbUtilsManager;

    @Inject
    protected AssertConvertManager assertConvertManager;

    @Inject
    protected TestDataManager testDataManager;

    protected QueryRunner queryRunner;
   
    @PostConstruct
    public void case_init() {
    	dbUtilsManager.setDataSource(dataSource);
        queryRunner = dbUtilsManager.getQueryRunner();
    }
    
}
